package com.woniuxy.cardservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.carddao.model.ValidCard;
import com.woniuxy.model.dto.ValidCardDto;
import com.woniuxy.model.form.AddValidCardForm;
import com.woniuxy.model.form.UpdateValidCardForm;

import java.util.List;

/**
 * <p>
 * 有效期会员卡表 服务类
 * </p>
 *
 * @author 冉杰
 * @since 2024-01-15
 */
public interface ValidCardService extends IService<ValidCard> {

    ValidCardDto addValidCard(AddValidCardForm form, Integer venueId);

    void disabledValidCard(Integer cardId, Integer venueId);

    void enableValidCard(Integer cardId, Integer venueId);

    void updateValidCard(UpdateValidCardForm form, Integer venueId);

    List<ValidCardDto> findByVenueId(Integer venueId);
}
